package com.example.wacoffee_user.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("orders")
public class Order {
    @TableId(value = "id",type = IdType.AUTO)
    private  int id;
    private String information;
    private double expend;
    private LocalDateTime createTime;
    private Long creator;
    private Integer status;
    @TableField(exist = false)
    private item[] items;
    @TableField(exist = false)
    private int totalItems;
    @TableField(exist = false)
    private LocalDateTime updateTime;
    @TableField(exist = false)
    private Long updater;
    private int userId;
    private Integer couponId;

}
